CC=c99
CFLAGS=-Wall
LIBS=-lmicrohttpd -ljansson
OBJ=httpd.o jerperter.o cmder.o main.o
DIR=$(addprefix dist/,$(OBJ))

mazgan: $(DIR)
	$(CC) -o $@ $^ $(LIBS) $(CFLAGS)

dist/%.o: src/%.c
	$(CC) -c -o $@ $< $(CFLAGS)

clean:
	@rm -f dist/*.o mazgan